define(['text!service/repairInstallation.html'],
	function(viewTemplate) {
		return Piece.View.extend({
			id: 'service_repairInstallation',
			events: {
				"click #repair": "repair",
				"click #install": "install",
			},
			render: function() {
				$(this.el).html(viewTemplate);

				Piece.View.prototype.render.call(this);
				return this;
			},
			onShow: function() {
				//write your business logic here :)
			},
			repair: function() {

				this.container.navigateForResult('/service/repair', {
					trigger: true
				}, 'service/repairInstallation', this.onGotResult);
			},
			install: function() {

				this.container.navigateForResult('/service/installation', {
					trigger: true
				}, 'service/repairInstallation', this.onGotResult);
			}


		}); //view define

	});